package com.mengshu.mybatisplus.annotations;

import java.lang.annotation.*;

/**
 * 唯一索引
 */
@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface UniqueKey {

    String[] value() default {};

    String message() default "数据已存在";

}
